package com.itbaizhan.shopping_file_service;

import com.github.tobato.fastdfs.FdfsClientConfig;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Import;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//忽略数据源配置
@EnableDubbo//dubbo服务的生产者
@Slf4j
//@MapperScan("com.itbaizhan.shopping_file_service.mapper")
@RefreshScope // 配置动态刷新
@EnableDiscoveryClient//注册该服务
@Import(FdfsClientConfig.class)//手动导入fastdfs配置
public class ShoppingFileServiceApplication {
	
	public static void main(String[] args) {
		SpringApplication.run(ShoppingFileServiceApplication.class, args);
		log.info("***********文件服务启动成功***********");
	}
	
}
